import static org.junit.Assert.*;

import org.junit.Test;
import org.junit.After; 
import org.junit.Before;


public class NumberTest {
	
	String[] tab = new String[1]; //={"12"};
	//tab[0]="12";
	Number k= new Number();
	String str;//=k.ma(10, 2,tab);
	
	@Before 
	public void setUp(){ 
		
		tab[0]="8";
		//Number k= new Number();
		//str=k.ma(10, 2,tab);
		
		k = new Number();
		str=k.ma(10, 2,tab);
		//nowy
	}

	
	@Test
	public void test1(){
		assertEquals(str, "1000");
		}
	
	@Test(timeout=10000) 
	public void test2(){ 
		k.ma(10, 2, tab);
	}
	
	@Test
	public void test3(){
		assertTrue(k.corectInPut(1, 100));
		assertFalse(k.flaga);
	}
	
	public void test4(){ 
		assertSame("8",k.ma(10, 11, tab));
	}
	
	@After 
	public void tearDown(){
		k = null;
	}
	
	
}
